import {
  GET_USERINFO
} from './mutation-types'

export default {
  async getUserInfo ({ commit, state }) {
    const res = this.$http.getUser()
    commit(GET_USERINFO, res)
  }
}
